Optimal. Leaf size=48 \[ -\frac {2 (b g-2 a h+(2 c g-b h) x)}{\left (b^2-4 a c\right ) d^2 \sqrt {a+b x+c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {1012, 650}
\begin {gather*} -\frac {2 (-2 a h+x (2 c g-b h)+b g)}{d^2 \left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 650
Rule 1012
Rubi steps
\begin {align*} \int \frac {(g+h x) \sqrt {a+b x+c x^2}}{\left (a d+b d x+c d x^2\right )^2} \, dx &=\frac {\int \frac {g+h x}{\left (a+b x+c x^2\right )^{3/2}} \, dx}{d^2}\\ &=-\frac {2 (b g-2 a h+(2 c g-b h) x)}{\left (b^2-4 a c\right ) d^2 \sqrt {a+b x+c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.37, size = 46, normalized size = 0.96 \begin {gather*} \frac {-2 b g+4 a h-4 c g x+2 b h x}{\left (b^2-4 a c\right ) d^2 \sqrt {a+x (b+c x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(94\) vs.
\(2(46)=92\).
time = 0.17, size = 95, normalized size = 1.98
method | result | size |
gosper | \(-\frac {2 \left (b h x -2 c g x +2 a h -b g \right )}{\sqrt {c \,x^{2}+b x +a}\, d^{2} \left (4 a c -b^{2}\right )}\) | \(48\) |
trager | \(-\frac {2 \left (b h x -2 c g x +2 a h -b g \right )}{\sqrt {c \,x^{2}+b x +a}\, d^{2} \left (4 a c -b^{2}\right )}\) | \(48\) |
default | \(\frac {h \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )+\frac {2 g \left (2 c x +b \right )}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}}{d^{2}}\) | \(95\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.50, size = 85, normalized size = 1.77 \begin {gather*} -\frac {2 \, \sqrt {c x^{2} + b x + a} {\left (b g - 2 \, a h + {\left (2 \, c g - b h\right )} x\right )}}{{\left (b^{2} c - 4 \, a c^{2}\right )} d^{2} x^{2} + {\left (b^{3} - 4 \, a b c\right )} d^{2} x + {\left (a b^{2} - 4 \, a^{2} c\right )} d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {g}{a \sqrt {a + b x + c x^{2}} + b x \sqrt {a + b x + c x^{2}} + c x^{2} \sqrt {a + b x + c x^{2}}}\, dx + \int \frac {h x}{a \sqrt {a + b x + c x^{2}} + b x \sqrt {a + b x + c x^{2}} + c x^{2} \sqrt {a + b x + c x^{2}}}\, dx}{d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.21, size = 81, normalized size = 1.69 \begin {gather*} -\frac {2 \, {\left (\frac {{\left (2 \, c d^{2} g - b d^{2} h\right )} x}{b^{2} d^{4} - 4 \, a c d^{4}} + \frac {b d^{2} g - 2 \, a d^{2} h}{b^{2} d^{4} - 4 \, a c d^{4}}\right )}}{\sqrt {c x^{2} + b x + a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.75, size = 49, normalized size = 1.02 \begin {gather*} \frac {4\,a\,h-2\,b\,g+2\,b\,h\,x-4\,c\,g\,x}{\left (b^2\,d^2-4\,a\,c\,d^2\right )\,\sqrt {c\,x^2+b\,x+a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________